/************************************************************************
 * @file PluginDescriptionParser.h
 * @author Ian Chen
 * @version 1.0
 *
 * @section LICENSE
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
 * General Public License for more details at
 * http://www.gnu.org/licenses/lgpl.html
 *
 ************************************************************************/
#ifndef PLUGINDESCRIPTIONPARSER_H
#define PLUGINDESCRIPTIONPARSER_H

#include <vector>

#include <QFileInfo>

#include <plugin/plugin/PluginDescription.h>

using namespace std;

namespace antu
{
namespace plugin
{
class PluginDescriptionParser
{
public:
    static PluginDescription* parse(const QString& fileName);

    static void parseDirectory(const QString& directoryName, vector<PluginDescriptionSharedPtr>& descriptions);

private:
    PluginDescriptionParser();

    static PluginDescription* parseFromFile(const QFileInfo& fileInfo);
};
}
}

#endif // PLUGINDESCRIPTIONPARSER_H
